/*
 * TransactionLine.java
 *
 * Created on March 15, 2007, 1:58 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 *
 * @author Sam
 */
public class TransactionLine extends BusinessObject {
    private Transaction transaction;
    private RevenueSource revenueSource;
    private Coupon coupon;
    private int quantity;
    /** Creates a new instance of TransactionLine */
    public TransactionLine(String id) {
        super(id);      
    }

    public Transaction getTransaction() {
        return transaction;
    }

    public void setTransaction(Transaction transaction) {
        this.transaction = transaction;
        this.setDirty(true);
    }

    public RevenueSource getRevenueSource() {
        return revenueSource;
    }

    public void setRevenueSource(RevenueSource revenueSource) {
        this.revenueSource = revenueSource;
        this.setDirty(true);
    }

    public Coupon getCoupon() {
        return coupon;
    }

    public void setCoupon(Coupon coupon) {
        this.coupon = coupon;
        this.setDirty(true);
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    
}
